package com.sikaryofficial.workbench.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sikaryofficial.workbench.domain.dto.req.membership.MembershipListReq;
import com.sikaryofficial.workbench.domain.dto.resp.membership.MembershipPolicyDTO;
import com.sikaryofficial.workbench.domain.entity.MembershipPolicy;
import org.apache.ibatis.annotations.Param;

/**
 * 会员激励政策Mapper接口
 * 
 * @author wuweihong
 * @date 2024-10-18
 */
public interface MembershipPolicyMapper extends BaseMapper<MembershipPolicy>
{
	IPage<MembershipPolicyDTO> membershipList(Page<MembershipPolicyDTO> customerPage, @Param("req") MembershipListReq req);

	MembershipPolicyDTO selectMembershipPolicyByUser(@Param("userId") Long userId);

}
